package com.redis.client;

import redis.clients.jedis.Jedis;

/**
 * @Classname Main
 * @Description 发布端
 * @Date 2019/7/21 22:46
 * @Created by xiangty
 */
public class Main {

    private static String host = "127.0.0.1";
    private static int port = 6379;

    public static void main(String[] args) {
        Jedis jedis = new Jedis(host, port);
        jedis.publish("dingyue01", "大家好，这是发布端");
    }

}
